﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SocketTool.Model.BindingModels
{
    public class CustomerProtocolBindingModel : NotifyObject
    {
        public CustomerProtocolBindingModel()
        {

        }

        public CustomerProtocolBindingModel(byte bt)
        {
            this.Byte = bt;
        }

        private byte mByte;
        public byte Byte
        {
            get => this.mByte;
            set => Set(ref mByte, value);
        }

        private bool mCanInput = true;
        public bool CanInput
        {
            get => this.mCanInput;
            private set => Set(ref mCanInput, value);
        }

        private bool mIsDtLen;
        public bool IsDtLen
        {
            get => this.mIsDtLen;
            set
            {
                Set(ref mIsDtLen, value);
                this.CanInput = !value;
            }
        }
    }
}
